From: Florian Müllner Date: Thu, 25 Oct 2012 20:07:12 +0000 (+0200) Subject: messageTray: Hide notification close button immediately on click X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5541 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a7b5134820c2f56958bf969aed0f748c77e922ef;p=gnome-shell.git messageTray: Hide notification close button immediately on click Having the close button move away from under the pointer after clicking it is confusing and distracts from the main transition, which is hiding the notification. Just hide it immediately. https://bugzilla.gnome.org/show_bug.cgi?id=682237 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 93ec828f4..89cbf94d0 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1591,6 +1591,7 @@ const MessageTray = new Lang.Class({ _onCloseClicked: function() { if (this._notificationState == State.SHOWN) { + this._closeButton.hide(); this._notificationClosed = true; this._updateState(); this._notificationClosed = false;